using System;
using System.Web.Security;
namespace Os.WebUI.Models
{
	public class FormsAuthenticationService : IFormsAuthenticationService
	{
		public void SignIn(string userName, bool createPersistentCookie)
		{
			if (string.IsNullOrEmpty(userName))
			{
				throw new ArgumentException("Preenchimento do campo é Obrigatório.", "userName");
			}
			FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
		}
		public void SignOut()
		{
			FormsAuthentication.SignOut();
		}
	}
}
